-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleaning up LowTemperatureRadiantSystems #8569
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extern Array1D_bool MySizeFlagHydr; | ||
extern Array1D_bool MySizeFlagCFlo; | ||
extern Array1D_bool MySizeFlagElec; | ||
extern Array1D_bool CheckEquipName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay, lots of externs gone!!
Real64 todayRunningMeanOutdoorDryBulbTemperature = 0.0; // Current running mean outdoor air dry-bulb temperature | ||
Real64 yesterdayRunningMeanOutdoorDryBulbTemperature = 0.0; // Running mean outdoor air dry-bulb temperature from yesterday | ||
Real64 todayAverageOutdoorDryBulbTemperature = 0.0; // Average outdoor dry-bulb temperature for today | ||
Real64 yesterdayAverageOutdoorDryBulbTemperature = 0.0; // Average outdoor dry-bulb temperature for yesterday |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
@@ -214,60 +173,53 @@ namespace LowTempRadiantSystem { | |||
|
|||
virtual void reportLowTemperatureRadiantSystem(EnergyPlusData &state) = 0; | |||
|
|||
// Default Constructor | |||
RadiantSystemBaseData() = default; | |||
~RadiantSystemBaseData() = default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Array1D<LowTempRadiantSystem::ElecRadSysNumericFieldData> ElecRadSysNumericFields; | ||
Array1D<LowTempRadiantSystem::HydronicRadiantSysNumericFieldData> HydronicRadiantSysNumericFields; | ||
Array1D<LowTempRadiantSystem::ConstantFlowRadDesignData> CflowRadiantSysDesign; | ||
Array1D<LowTempRadiantSystem::VarFlowRadDesignData> HydronicRadiantSysDesign; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allll these were globals. Very nice!
ElecRadSys.allocate(1); | ||
HydrRadSys.allocate(1); | ||
CFloRadSys.allocate(1); | ||
state->dataLowTempRadSys->ElecRadSys.allocate(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly what I expected.
@@ -592,17 +504,100 @@ namespace LowTempRadiantSystem { | |||
LowTempRadiantSystem::SystemType const SystemType // Type of radiant system: hydronic, constant flow, or electric | |||
); | |||
|
|||
void UpdateRadSysSourceValAvg(bool &LowTempRadSysOn); // .TRUE. if the radiant system has run this zone time step | |||
void UpdateRadSysSourceValAvg(EnergyPlusData &state, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I was expecting this possibility as well. Looks like just this one function needed a state argument though, so that's great!
CI is all super green, these changes look great, merging. Thanks @jmythms |
Thank you!!! |
Pull request overview
Focuses on LowTemperatureRadiantSystems.*
NOTE: ENHANCEMENTS MUST FOLLOW A SUBMISSION PROCESS INCLUDING A FEATURE PROPOSAL AND DESIGN DOCUMENT PRIOR TO SUBMITTING CODE
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.